package cn.xm.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {
    private String keyword;

    private Integer currentPage;
    private Integer pageSize;

    public Integer getStart () {
        return (currentPage - 1) * pageSize;
    }

}
